<?php

$vendor = realpath(__DIR__ . '/../lib/vendor');

require_once $vendor . '/doctrine-common/lib/Doctrine/Common/ClassLoader.php';
require_once realpath(__DIR__ . '/../lib/DoctrineManager.php');

DoctrineManager::RegisterNamespace('Doctrine\Common', $vendor . '/doctrine-common/lib');
DoctrineManager::RegisterNamespace('Doctrine\ORM', $vendor . '/doctrine-orm/lib');
DoctrineManager::RegisterNamespace('Doctrine\DBAL', $vendor . '/doctrine-dbal/lib');
DoctrineManager::RegisterNamespace('Doctrine\ODM', $vendor . '/doctrine-mongodb-odm/lib');
DoctrineManager::RegisterNamespace('Doctrine\MongoDB', $vendor . '/doctrine-mongodb/lib');
DoctrineManager::RegisterNamespace('Symfony', $vendor);

DoctrineManager::RegisterNamespace('ORM', __DIR__);
DoctrineManager::RegisterNamespace('ODM', __DIR__);